package com.itboye.jigongbao.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * Created by Administrator on 2018/1/5.
 */

public class JiYiBiBean implements Serializable, Parcelable {

    /**
     * id : 67
     * create_time : 1515120817
     * update_time : 1515120817
     * project_title :
     * record_uid : 1078
     * sub_title :
     * daytime : 20180111
     * item_type_key : 00S002003
     * worker_mobile : 15736243109
     * worker_name :
     * overseer_mobile : 12345678912
     * overseer_name : 信莲西任
     * note : 测试note
     * extra : {"hourly_wage":600,"normal_worktime":null,"over_worktime":null}
     * money : 0
     * audit_status : 0
     */

    private int count;
    private ArrayList<JiYiBiEntity> list;

    protected JiYiBiBean(Parcel in) {
        count = in.readInt();
        list = in.createTypedArrayList(JiYiBiEntity.CREATOR);
    }

    public static final Creator<JiYiBiBean> CREATOR = new Creator<JiYiBiBean>() {
        @Override
        public JiYiBiBean createFromParcel(Parcel in) {
            return new JiYiBiBean(in);
        }

        @Override
        public JiYiBiBean[] newArray(int size) {
            return new JiYiBiBean[size];
        }
    };

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public ArrayList<JiYiBiEntity> getList() {
        return list;
    }

    public void setList(ArrayList<JiYiBiEntity> list) {
        this.list = list;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(count);
        parcel.writeTypedList(list);
    }

    public static class JiYiBiEntity implements Serializable, Parcelable{
        private int id;
        private int create_time;
        private int update_time;
        private String project_title;
        private int record_uid;
        private String sub_title;
        private String daytime;
        private String item_type_key;
        private String worker_mobile;
        private String worker_name;
        private String overseer_mobile;
        private String overseer_name;
        private String note;
        private String extra;
        private long money;
        private int audit_status;
        public JiYiBiEntity() {

        }
        protected JiYiBiEntity(Parcel in) {
            id = in.readInt();
            create_time = in.readInt();
            update_time = in.readInt();
            project_title = in.readString();
            record_uid = in.readInt();
            sub_title = in.readString();
            daytime = in.readString();
            item_type_key = in.readString();
            worker_mobile = in.readString();
            worker_name = in.readString();
            overseer_mobile = in.readString();
            overseer_name = in.readString();
            note = in.readString();
            extra = in.readString();
            money = in.readLong();
            audit_status = in.readInt();
        }

        public static final Creator<JiYiBiEntity> CREATOR = new Creator<JiYiBiEntity>() {
            @Override
            public JiYiBiEntity createFromParcel(Parcel in) {
                return new JiYiBiEntity(in);
            }

            @Override
            public JiYiBiEntity[] newArray(int size) {
                return new JiYiBiEntity[size];
            }
        };

        public void setId(int id) {
            this.id = id;
        }

        public void setCreate_time(int create_time) {
            this.create_time = create_time;
        }

        public void setUpdate_time(int update_time) {
            this.update_time = update_time;
        }

        public void setProject_title(String project_title) {
            this.project_title = project_title;
        }

        public void setRecord_uid(int record_uid) {
            this.record_uid = record_uid;
        }

        public void setSub_title(String sub_title) {
            this.sub_title = sub_title;
        }

        public void setDaytime(String daytime) {
            this.daytime = daytime;
        }

        public void setItem_type_key(String item_type_key) {
            this.item_type_key = item_type_key;
        }

        public void setWorker_mobile(String worker_mobile) {
            this.worker_mobile = worker_mobile;
        }

        public void setWorker_name(String worker_name) {
            this.worker_name = worker_name;
        }

        public void setOverseer_mobile(String overseer_mobile) {
            this.overseer_mobile = overseer_mobile;
        }

        public void setOverseer_name(String overseer_name) {
            this.overseer_name = overseer_name;
        }

        public void setNote(String note) {
            this.note = note;
        }

        public void setExtra(String extra) {
            this.extra = extra;
        }

        public void setMoney(long money) {
            this.money = money;
        }

        public void setAudit_status(int audit_status) {
            this.audit_status = audit_status;
        }

        public int getId() {
            return id;
        }

        public int getCreate_time() {
            return create_time;
        }

        public int getUpdate_time() {
            return update_time;
        }

        public String getProject_title() {
            return project_title;
        }

        public int getRecord_uid() {
            return record_uid;
        }

        public String getSub_title() {
            return sub_title;
        }

        public String getDaytime() {
            return daytime;
        }

        public String getItem_type_key() {
            return item_type_key;
        }

        public String getWorker_mobile() {
            return worker_mobile;
        }

        public String getWorker_name() {
            return worker_name;
        }

        public String getOverseer_mobile() {
            return overseer_mobile;
        }

        public String getOverseer_name() {
            return overseer_name;
        }

        public String getNote() {
            return note;
        }

        public String getExtra() {
            return extra;
        }

        public long getMoney() {
            return money;
        }

        public int getAudit_status() {
            return audit_status;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel parcel, int i) {
            parcel.writeInt(id);
            parcel.writeInt(create_time);
            parcel.writeInt(update_time);
            parcel.writeString(project_title);
            parcel.writeInt(record_uid);
            parcel.writeString(sub_title);
            parcel.writeString(daytime);
            parcel.writeString(item_type_key);
            parcel.writeString(worker_mobile);
            parcel.writeString(worker_name);
            parcel.writeString(overseer_mobile);
            parcel.writeString(overseer_name);
            parcel.writeString(note);
            parcel.writeString(extra);
            parcel.writeLong(money);
            parcel.writeInt(audit_status);
        }
    }

}
